package com.woniuxy.classteacher.mapper;

import com.woniuxy.commons.entity.StudentInfo;
import com.woniuxy.commons.entity.wyh.TeacherInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Auther: 牟强
 * @Date: 2020/7/28/028 15:31
 * @Description: 用户表
 */
@Repository
public interface UserMapper {
    /**
     * @Author: 牟强
     * @Date: 2020/7/28/028 15:33
     * @Description: 批量添加学生账号、密码、id到user表
     * @Param: [studentInfos]
     * @return: void
     */
    public void batchAddStudenInfoArriveUser(List<StudentInfo> studentInfos);

    /**
     * @Author: 牟强
     * @Date: 2020/8/3/003 9:51
     * @Description: 根据账号和角色的Id更新密码
     * @Param: [account, roleId]
     * @return: void
     */
    public void updatePasswordByAccountAndRoleId(@Param("account") String account, @Param("roleId") int roleId, @Param("pwd") String pwd);

}
